package com.rustic.server.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 *  @author xy
 */
@Data
public class LoginDTO {

    @ApiModelProperty(value = "手机号/邮箱", dataType = "String", required = true)
    @NotEmpty(message = "手机号/邮箱不可为空")
    private String account;

    @ApiModelProperty(value = "密码", dataType = "String", required = true)
    @NotEmpty(message = "密码不可为空")
    private String password;

}
